<?php
$userid = islogin();
$oCart = new Cart();
$r = $oCart->update_cart($userid, $_POST['number']);	// 更新购物车
$custom = array(
	'ptitle'=> '更新购物车',
	'title'	=> '更新购物车'.($r > 0 ? '成功' : '失败'),
	'btns'	=> array('查看购物车' => './index.php?mdl=cart&do=list'),
	'jsdoc'	=> 'set_cookie("cart_num", "", -1);',
);
sysinfo($custom, './index.php?mdl=cart&do=list', 2000);
?>